package com.dkd.manage.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.dkd.common.annotation.Excel;
import com.dkd.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 点位管理对象 tb_node
 * 
 * @author ruruihan
 * @date 2025-10-31
 */
@EqualsAndHashCode(callSuper = false)
@TableName("tb_node")
@Data
public class Node extends BaseEntity
{
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 点位名称 */
    @Excel(name = "点位名称")
    private String nodeName;

    /** 详细地址 */
    @Excel(name = "详细地址")
    private String address;

    /** 商圈类型 */
    @Excel(name = "商圈类型")
    private Long businessType;

    /** 所属区域ID */
    @Excel(name = "所属区域ID")
    private Long regionId;

    /** 所属合作商ID */
    @Excel(name = "所属合作商ID")
    private Long partnerId;
    @TableField(exist = true)
    private Date createTime;
    @TableField(exist = true)
    private Date updateTime;
    @TableField(exist = true)
    private String createBy;
    @TableField(exist = true)
    private String updateBy;
    @TableField(exist = true)
    private String remark;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("nodeName", getNodeName())
            .append("address", getAddress())
            .append("businessType", getBusinessType())
            .append("regionId", getRegionId())
            .append("partnerId", getPartnerId())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("remark", getRemark())
            .toString();
    }
}
